const Koa = require('Koa')
const app = new Koa()
const db = require('./mongooes/db')
const router = require('./routes/router')




// app.use(ctx => {
//     // console.log("客户端请求服务器");
//     // ctx.body = "我是服务器"
// })

app.use(router.routes())
app.use(router.allowedMethods())

app.listen(3000, () => {
    console.log("listen 3000");
})